<%@ page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<html>
<head>
	<title>Title</title>
</head>
<body>
	<form action="login" method="post">
		<div>登录</div>
		<div>用户名:</div>
		<div><input name="username"/>
			<%
				String msg = (String)request.getAttribute("login_failed");
			%>
		<span style="color:red;"><%=msg == null ? "" : msg%></span></div>
		<div>密码:</div>
		<div><input name="pwd" type="password"/></div>
		<div><input type="submit" value="确定"/></div>
	</form>
</body>
</html>